/*
 Navicat Premium Dump SQL

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80403 (8.4.3)
 Source Host           : localhost:33069
 Source Schema         : test

 Target Server Type    : MySQL
 Target Server Version : 80403 (8.4.3)
 File Encoding         : 65001

 Date: 11/01/2025 13:32:02
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for UserComments
-- ----------------------------
DROP TABLE IF EXISTS `UserComments`;
CREATE TABLE `UserComments` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `userId` int unsigned NOT NULL,
  `commentId` int unsigned NOT NULL,
  `createdAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updatedAt` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `userId` (`userId`,`commentId`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

-- ----------------------------
-- Records of UserComments
-- ----------------------------
BEGIN;
INSERT INTO `UserComments` (`id`, `userId`, `commentId`, `createdAt`, `updatedAt`) VALUES (1, 1, 1, '2025-01-03 13:31:53', '2025-01-03 13:31:53');
INSERT INTO `UserComments` (`id`, `userId`, `commentId`, `createdAt`, `updatedAt`) VALUES (2, 2, 21, '2025-01-11 04:03:40', '2025-01-11 04:03:40');
INSERT INTO `UserComments` (`id`, `userId`, `commentId`, `createdAt`, `updatedAt`) VALUES (8, 4, 22, '2025-01-11 04:22:13', '2025-01-11 04:22:13');
INSERT INTO `UserComments` (`id`, `userId`, `commentId`, `createdAt`, `updatedAt`) VALUES (9, 4, 21, '2025-01-11 04:22:14', '2025-01-11 04:22:14');
INSERT INTO `UserComments` (`id`, `userId`, `commentId`, `createdAt`, `updatedAt`) VALUES (10, 3, 26, '2025-01-11 05:27:50', '2025-01-11 05:27:50');
INSERT INTO `UserComments` (`id`, `userId`, `commentId`, `createdAt`, `updatedAt`) VALUES (11, 3, 28, '2025-01-11 05:28:09', '2025-01-11 05:28:09');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
